import { createApp } from 'vue'
// 导入全局样式
import i18n from '@/i18n'
import store from './store'
import './styles/index.scss'
import App from './App.vue'
import router from './router'
import SvgIcon from '@/components/svg-icon/svg-icon.vue'
// 导入权限控制模块
import './permission'
import installElementPlus from './plugins/element'
// filter
import installFilter from '@/filters'
import installDirective from '@/directives'

const app = createApp(App)

app.use(store)
app.use(router)
app.use(i18n)
installElementPlus(app)
installFilter(app)
installDirective(app)

// 全局注册组件
app.component('svg-icon', SvgIcon)
app.mount('#app')
